﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="default_teste.aspx.cs" Inherits="Site_IEQ.internas.default_teste" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
</head>
<body>

<script src="../Scripts/jquery-1.4.1.js" type="text/javascript" language="javascript" ></script>
<script language="javascript" type="text/javascript">
    $(document).ready(function () {
        $("#texto").text(function() {
            $.ajax({
            type: "POST",
            url: "default_teste.aspx/GetTexto",
            data: "{}",
            contentType: "application/json; charset=utf-8",
            dataType: "json",
            success: function(msg) {
            $("#texto").text(msg.d);
        }
    });
   });
});

</script>

    <form id="form1" runat="server">
    <div>
    
        <asp:Button ID="Button1" runat="server" Text="Button" />
    
    </div>

    <div id="texto">    
    
    
    </div>
    </form>
</body>
</html>
